package bo;

import java.util.ArrayList; 
import java.util.List; 

import dao.hibernate.StuckEventVoDAO;

public class ApBo {
	private static List<String>  allIps ;
	public List<String> getAllApIp() {
		List<String> result = new ArrayList<String>();
		if(allIps ==null || allIps.size() == 0 ){
			final StuckEventVoDAO dao =new StuckEventVoDAO();
			allIps = dao.findDistinctHostIp();			
			
		}
		result.addAll(allIps);
		return result;
	}
}
